﻿using Max.Ph5_2009A.NewShopping.Domain;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.Ph5_2009A.NewShopping.EFCore
{
    public class PH52009ANewShoppingDbContext : DbContext
    {
        public PH52009ANewShoppingDbContext(DbContextOptions options) : base(options)
        {
        }

        #region 系统日志
        public DbSet<SystemLogModel> SystemLogs { get; set; }
        #endregion

        #region 会员模块
        public DbSet<MemberInfoModel> MemberInfos { get; set; }
        public DbSet<MemberAddressModel> MemberAddresss { get; set; }

        #endregion

        #region 产品模块
        public DbSet<BrandInfoModel> Brands { get; set; }
        public DbSet<CategoryInfoModel> Categorys { get; set; }
        public DbSet<ProductInfoModel> Products { get; set; }
        public DbSet<ProductSKUModel> ProductSKUs { get; set; }
        public DbSet<ProductSKUImageModel> ProductSKUImages { get; set; }
        public DbSet<SpecInfoModel> SpecInfos { get; set; }
        public DbSet<CategorySpecInfoModel> CategorySpecs { get; set; }
        public DbSet<CategorySpecValueModel> CategorySpecValues { get; set; }

        #endregion


        #region 2023/4/6 城市列表
        public DbSet<SystemCityDataModel> SystemCityDatas { get; set; }
        #endregion

        #region 订单模块
        public DbSet<OrderDetailInfoModel>  OrderDetailInfos { get; set; }
        public DbSet<OrderMasterInfoModel> OrderMasterInfos { get; set; }

        #endregion
    }
}
